package com.olive.service.impl;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @Author huangjinjin ( 22080514 )
 * @Date 2023/2/9 10:37
 * @Version 1.0
 */
@Service
public class CustomPasswordEncoder implements PasswordEncoder {

    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString() ;
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return true;
    }
}
